//
//  FlightCityListController.h
//  ELife
//
//  Created by xiaozhi on 11-5-24.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#define IS_HOT @"1"


@interface FlightCityListController : UIViewController <UITableViewDataSource, UITableViewDelegate>
{
    @private
    NSMutableArray *_citySections;
    SEL _onSelected;
    id _owner;
}
@property (retain, nonatomic) IBOutlet UITableView *cityTableView;
@property (retain) id _owner;

// selected listener
- (void)addTarget:(id)owner action:(SEL)action;

@end


@interface CitySection : NSObject {
    BOOL isExpand;
    NSString *title;
    NSMutableArray* cityList;
}
@property (nonatomic) BOOL isExpand;
@property (retain) NSString *title;
@property (retain) NSMutableArray* cityList;

- (id)initWithTitle:(NSString*)sectionTitle;
@end

@interface FlightCity : NSObject {
    /*airma = 城市的3位码
    air_city = 城市名称
    airport_name = 飞机场名称
    airport_type = 0代表国内机场
    is_hot = 是否热点城市  0不是热点城市  1是热点
    letter = 拼音首字母
     */
@private
    NSString *_cityCode;
    NSString *_cityName;
    NSString *_airportName;
    NSString *_airportType;
    NSString *_isHot;
    NSString *_cityFirstLetter;
}

@property (retain) NSString *_cityCode;
@property (retain) NSString *_cityName;
@property (retain) NSString *_airportName;
@property (retain) NSString *_airportType;
@property (retain) NSString *_isHot;
@property (retain) NSString  *_cityFirstLetter;
@end